//# sourceURL=http://uMapApp/UI/Panel/PanelBlock/ChartBlock
define([
    "mhjs/mhjs",
    "./PanelBlock",
    "../../Chart/Chart"
], function (
    mhjs,
    PanelBlock,
    Chart
) {

    function ChartBlock(option) {

        var _this = this;
        _this.isOpened = false;

        _this._list = [];

        PanelBlock.call(_this, option);
        _this.addClass("chartBlock");
    }

    var _class = ChartBlock;
    mhjs.Inherit(_class, PanelBlock);


    Object.defineProperties(_class.prototype, {
        "chart" : {
            get: function () {
                return this._chart;
            },
            set: function (chart) {
                var _this = this;
                _this._chart = new Chart(chart);
                _this.ui.wrap.empty();
                _this.ui.wrap.append(_this._chart);
            }
        }
    });

    return _class;

});